package furns.dao.impl;

import furns.dao.BasicDAO;
import furns.dao.ManagerDAO;
import furns.entity.Manager;

public class ManagerDAOImpl extends BasicDAO<Manager> implements ManagerDAO {
    @Override
    public Manager queryManagerByUsernameAndPassword(String username, String password) {
        String sql = "select * from manager where username = ? and password = MD5(?)";
        return querySingle(sql, Manager.class, username, password);
    }
}
